package j04zuoye.j3shape;

class Point{
    double x;
    double y;
}

public class Shape {
    public double perimeter(){
        return 0;
    }
    public double area(){
        return 0;
    }
}
class Cicle extends Shape{
    Point center;
    double r;

    @Override
    public double perimeter() {
        return 2*3.14*r;
    }

    @Override
    public double area() {
        return 3.14*r*r;
    }
}
class Rectangle extends Shape{
    Point startPoint;
    double width;
    double height;

    @Override
    public double perimeter() {
        return super.perimeter();
    }

    @Override
    public double area() {
        return super.area();
    }

}